/*
 * Utils.java
 *
 * Created on 13 de octubre de 2006, 23:32
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ub.es.ubictionary.visual;

import java.io.File;
import javax.swing.JFileChooser;

/**
 *
 * @author aram
 */
public class Utils {
    
    /** Creates a new instance of Utils */
    public Utils() {
    }
    
    public static String showFileChooser(){
       String r = "";
       JFileChooser fileChooser = new JFileChooser(".");
       int status = fileChooser.showOpenDialog(null);
       if (status == JFileChooser.APPROVE_OPTION) {
         File selectedFile = fileChooser.getSelectedFile();
         r = selectedFile.getAbsolutePath();
       }
        return r;
    }
    
    
    
}
